package com.wx.day03.Work.Service;

import com.wx.day03.Work.Dao.StudentDao;
import com.wx.day03.Work.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceimpl implements StudentService {
    @Autowired
    private StudentDao studentDao;
    @Override
    public List<Student> getStudentList() throws Exception{
        return studentDao.queryAll();
    }
}
